package com.dao.basic;

import junit.framework.Assert;

import org.hibernate.Query;
import org.hibernate.Session;
import org.junit.Before;
import org.junit.Test;

import com.hibernate.HibernateSessionFactory;

public class TestMyJobMenuDao {
	
	private Session session;
	
	
	@Before
	public void init(){
		session  =  HibernateSessionFactory.getSession();
	}
	
	@Test
	public void getSession(){
		Query  q  = session.createQuery("from MyJobMenu");
		//q.list();
		Assert.assertTrue(q.list().size()>0);
		//ExtMainType e = (ExtMainType) session.get(ExtMainType.class, 1);
		//org.junit.Assert.assertTrue(e.getIsView().toString().equals("1"));
	}
}
